package com.hwadee.teachingprocessmanagementsystem.util.result.code;

/**
 * @Description:
 * @Author: Jukomu
 * @Package: com.hwadee.teachingprocessmanagementsystem.util.result.code
 * @Project: SpringBoot-demo
 * @name: Code
 * @Date: 2024/7/4-21:44
 * @Filename: Code
 */
public interface Code {
    // 成功
    int SUCCESS  = Errs.put(200, "成功");
    // 未知错误
    int ERROR	 = Errs.put(-1, "操作有误");
    // 未知错误
    int LOGIN_OUT	 = Errs.put(-2, "登录失效");
    // 用户名或密码不正确
    int LOGIN_ERROR	 = Errs.put(-3, "用户名或密码不正确");

    //新增学生失败
    int ADD_STUDENT_ERROR	 = Errs.put(-4, "新增学生失败");

    //修改学生失败
    int UPDATE_STUDENT_ERROR	 = Errs.put(-5, "修改学生失败");

    //删除学生失败
    int DELETE_STUDENT_ERROR	 = Errs.put(-5, "删除学生失败");
}
